import request from '@/utils/request'

// 查询项目概况
export function listGeneral(id) {
    return request({
        url: '/project/info/' + id,
        method: 'get',
    })
}

// 修改项目概况
export function updateGeneral(data) {
    return request({
        url: '/project/info',
        method: 'put',
        data: data
    })
}

//上传图片
export function uploadImages(data) {
    return request({
        url: '/api/system/uploader/images',
        method: 'post',
        data: data
    })
}

// 根据项目同步经营系统的项目和项目合同数据
export function synchronizeProject(projectId) {
    return request({
        url: '/project/info/projectSynchronous/'+projectId,
        method: 'get'
    })
}